/***
 * @description user Schema
 * @author zhang
 */

const mongoose = require('../db/db')

const Schema = mongoose.Schema({ // 用户
    username: {
        type: String,
        required: true, // 必需
        unique: true // 唯一
    },
    password: String
}, { timestamps: true })

const User = mongoose.model('user', Schema)

module.exports = User